home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 662.swf / scripts / frame_19 / DoAction.as
Text File  |  2006-01-17  |  2KB  |  49 lines

  1. tellTarget("squeezer2")
  2. {
  3.    gotoAndStop(eval("/:result")[2]);
  4. }
  5. if(player >= 20 && computer >= 20)
  6. {
  7.    gotoAndPlay(1);
  8. }
  9. computer_grade = calc_grade(2,result,10);
  10. setProperty("squeezer2", _X, getProperty("move_bg", _X));
  11. setProperty("squeezer2", _Y, getProperty("move_bg", _Y));
  12. if(player_grad[0] == computer_grade || player_grad[1] == computer_grade || 21 < player_grad[0] && 21 < computer_grade || 21 < player_grad[1] && 21 < computer_grade)
  13. {
  14.    gotoAndPlay(66);
  15. }
  16. else if((21 >= player_grad[0] && computer_grade < player_grad[0] || 21 < computer_grade || player_card[0] == 5 && 21 >= player_grad[0]) && player_grad[0] != 0)
  17. {
  18.    if(player_card[0] < computer_card && computer_card == 5 && 21 >= computer_card || computer_card == player_card[0] && player_grad[0] < computer_grade && 21 >= computer_grade)
  19.    {
  20.       gotoAndPlay(43);
  21.    }
  22.    else
  23.    {
  24.       gotoAndPlay(20);
  25.    }
  26. }
  27. else if(21 >= player_grad[1] && computer_grade < player_grad[1] || 21 < computer_grade || player_card[1] == 5 && 21 >= player_grad[1])
  28. {
  29.    if(player_card[1] < computer_card && computer_card == 5 && 21 >= computer_card || computer_card == player_card[1] && player_grad[1] < computer_grade && 21 >= computer_grade)
  30.    {
  31.       player_grad[1] = 0;
  32.       gotoAndPlay(43);
  33.    }
  34.    else
  35.    {
  36.       player_grad[1] = 0;
  37.       gotoAndPlay(20);
  38.    }
  39. }
  40. else if((21 >= computer_grade && computer_grade >= player_grad[0] || 21 < player_grad[0] || computer_card == 5 && 21 >= computer_grade) && player_grad[0] != 0)
  41. {
  42.    gotoAndPlay(43);
  43. }
  44. else if(21 >= computer_grade && computer_grade >= player_grad[1] || 21 < player_grad[1] || computer_card == 5 && 21 >= computer_grade)
  45. {
  46.    player_grad[1] = 0;
  47.    gotoAndPlay(43);
  48. }
  49.